import Vue from 'vue'
import App from './App'
import store from './store' // store
import plugins from './plugins' // plugins
import './permission' // permission
import { getDicts } from "@/api/system/dict/data"

// tabbar组件
import customTabBar from './custom-tab-bar/tabbar.vue'
Vue.component('custom-tab-bar', customTabBar)

// 标题组件
import PageHeader from '@/components/PageHeader/PageHeader.vue'
Vue.component('page-header', PageHeader)

// 引入全局 uview 框架
import uView from "uview-ui"
Vue.use(uView)


Vue.use(plugins)

Vue.config.productionTip = false
Vue.prototype.$store = store
Vue.prototype.getDicts = getDicts

App.mpType = 'app'

const app = new Vue({
  store,
  ...App
})

app.$mount()
